Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​ValueTuple`5

Assembly: System.Runtime

Represents a value tuple with 5 components.

Fields and Constants

public T1
Item1
Gets the value of the current <see cref="T:System.ValueTuple`5" /> instance's first element.
public T2
Item2
Gets the value of the current <see cref="T:System.ValueTuple`5" /> instance's second element.
public T3
Item3
Gets the value of the current <see cref="T:System.ValueTuple`5" /> instance's third element.
public T4
Item4
Gets the value of the current <see cref="T:System.ValueTuple`5" /> instance's fourth element.
public T5
Item5
Gets the value of the current <see cref="T:System.ValueTuple`5" /> instance's fifth element.

Methods

public int
CompareTo​(ValueTuple`5 other)
public bool
Equals​(object obj)
obj The object to compare with this instance.
Returns <see langword="true" /> if the current instance is equal to the specified object; otherwise, <see langword="false" /> .
Returns a value that indicates whether the current <see cref="T:System.ValueTuple`5" /> instance is equal to a specified object.
public bool
Equals​(ValueTuple`5 other)
public int
GetHashCode​()
Returns The hash code for the current <see cref="T:System.ValueTuple`5" /> instance.
Calculates the hash code for the current <see cref="T:System.ValueTuple`5" /> instance.
public string
ToString​()
Returns The string representation of this <see cref="T:System.ValueTuple`5" /> instance.
Returns a string that represents the value of this <see cref="T:System.ValueTuple`5" /> instance.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .